package com.example.xitong;

import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.gyf.immersionbar.ImmersionBar;

public class Xwk extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xwk);

        ImmersionBar.with(this)
                // .statusBarColor(R.color.touming)
                .init();

        ConstraintLayout constraintLayout = findViewById(R.id.chead);
        constraintLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(Xwk.this, Head.class);
                startActivity(intent);
            }
        });
        ConstraintLayout constraintLayout1 = findViewById(R.id.cbody);
        constraintLayout1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(Xwk.this, Body.class);
                startActivity(intent);
            }
        });
        ConstraintLayout constraintLayout2 = findViewById(R.id.chand);
        constraintLayout2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(Xwk.this, Hand.class);
                startActivity(intent);
            }
        });
        ConstraintLayout constraintLayout3 = findViewById(R.id.cleg);
        constraintLayout3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(Xwk.this, Leg.class);
                startActivity(intent);
            }
        });

    }
}